#ifndef MYVECTOR_H
#define MYVECTOR_H

#include <iostream>
#include <string>

class MyVector {
protected:
    int maxsize;
    int size;
    std::string* pdata;

public:
    MyVector();
    MyVector(const MyVector& other);
    virtual ~MyVector();

    void add_element(const std::string& element);
    void delete_element(int index);
    int find(const std::string& element) const;

    std::string& operator[](int index);
    MyVector& operator=(const MyVector& other);

private:
    void resize();
};

#endif // MYVECTOR_H
